<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="/user/create" method="post">
  <input type="text" name="username" placeholder="username" required value="username-"><br>
  <input type="password" name="password" placeholder="password" required value="123"><br>
  <input type="submit" value="create user">
</form>
<table border="1">
  <tr>
    <th>id</th>
    <th>username</th>
    <th>password</th>
    <th colspan="2">operation</th>
  </tr>
  <tr th:each="user : ${users}">
    <td th:text="${user.id}"></td>
    <td th:text="${user.username}"></td>
    <td th:text="${user.password}"></td>
    <td><a th:href="@{'/user/queryById/' + ${user.id}}">edit</a></td>
    <td><a th:href="@{'/user/removeById/' + ${user.id}}">remove</a></td>
  </tr>
</table>
</body>
</html>